package com.Cychat.doctor.service.impl;

import com.Cychat.commons.entity.pojo.Hospital;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.Cychat.doctor.mapper.HospitalMapper;
import com.Cychat.doctor.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Auther: 谢宝辉  <br/>
 * Date: 2025/11/3:17:20  <br/>
 * Description: 医院ServiceImpl
 */
@Service
public class HospitalServiceImpl extends ServiceImpl<HospitalMapper, Hospital> implements HospitalService {
    @Autowired
    private HospitalMapper hospitalMapper;
    @Override
    public List<Hospital> getAllHospital() {
        List<Hospital> allHospital = hospitalMapper.getAllHospital();
        return allHospital;
    }
}
